Batch 3 - Class 119 - Markov Chains, Monopoly, Pagerank

Pre-Class Problem:
Two people have asked you out for a date and you've decided to decide who to go with by flipping a coin. The problem is that the only coin you have is biased: you know that heads comes up with a probability of 0.75 rather than 0.5 as is the case with a fair coin. However, you do really want each of the two people to have a fair chance of being picked. Using a combination of two coin flips instead of one, can you find a way of making the random decision fair?(Hint: the chance doesn't have to be 50:50.)

Attendance: Smiti, Muskaan, Khushi, Arnav, Anishka, Anshi, Ahana, Manya, Arnav, Zorawar, Damini

Class Notes:
Simple Chair Game
Lets have two chairs A and B. A person starts sitting at either of those chairs, and on each time interval, she stays or swaps chairs on basis of the following rules:
After a long series of events, what is the probability of us finding her on chair A versus B?

Rainy Day
Suppose I told you that in a year, chances of a day being rainy is 0.5 and chances of a day being sunny is 0.5. It is raining today, what are the chances it will rain tomorrow?

Aha! So we can get 50:50 probability even when events are not independent. These are called Markov Chains.

Let's try to find a simple way to solve these using linear equations

So why is this interesting - Monopoly!
How does Monopoly work? Can we think of it as probability of landing on a given square? What does that depend on?

So if we tell you where you are currently, you can find out the probability of where you land up next. Just like in above examples, we had two states, here we have 40 states (if we incorporate the doubles and other cards all into the probability computation).

What will happen if we now solve it over large number of throws?

Lets see - this is where we can be at end of first roll

And this is where we land up after a long set of moves - What can you deduce from it? (Look at Jail and Just Visiting together. Don't bother about the colors yet)
If you were playing Monopoly, how would you incorporate this into your gameplay?

Instructor Notes: Let kids think about the questions above, and get to the criteria - For example: one should buy properties that have the highest earning potential in relation to their cost. Or breakeven point. Or highest chances of an opponent coming to it.

Lets see some of the results:

And for color sets:


And to Practical Stuff - Foundations of Google Pagerank
Google ranks all web pages as per pagerank. Lets see the basis of this:

Time permitting, lets calculate relative ranks of the pages in following web.

Google also solves the "dead end" problem, by taking a probability that at any point, the surfer may just quit random navigation and type in one of the pages in URL (effectively "jump").

(See Excel Sheet Pagerank Attached)

Homework
Think about one more game that you like, which can be modeled as Markov Chain. Think about what "states" represent, and how you would create a transition diagram. Think about the elements you would take into account to assign probabilities to transition. Finally, on a simplistic version, try to find probabilities of outcomes. What outcomes are important in your game?

References:
https://plus.maths.org/content/be-fair
http://galileo.org/markov-process/
https://www.quora.com/How-do-I-explain-Markov-chains-to-a-10-year-old-1
https://www.dropbox.com/s/sme0ezqsb69yg7k/Hannah-monopoly-plots.pdf?dl=0
https://math.dartmouth.edu/archive/m20f10/public_html/mcpc.pdf